from django.conf.urls import url
from . import views


urlpatterns = [
    url(r'^$', views.LoadHomeView.as_view(), name='home'),
    url(r'^register/$', views.LoadRegisterView.as_view(), name='register'),
    url(r'^login/$', views.LoadLoginView.as_view(), name='login'),
    url(r'^user_center/$', views.LoadUserCenterView.as_view(), name='user_center'),
    url(r'^user_info/$', views.LoadUserInfoView.as_view(), name='user_info'),
    url(r'^auth/$', views.LoadUserRealNameAuthenticationView.as_view(), name='auth'),
    url(r'^api/v1.0/users$', views.RegisterView.as_view()),
    url(r'^api/v1.0/session$', views.LoginView.as_view()),
    url(r'^api/v1.0/user$', views.UserCenterView.as_view()),
    url(r'^api/v1.0/user/avatar$', views.UploadAvatarView.as_view()),
    url(r'^api/v1.0/user/name$', views.ModifyUserNameView.as_view()),
    url(r'^api/v1.0/user/auth$', views.UserRealNameAuthenticationView.as_view()),
]